﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DLL.Software
{
	/// <summary>
	/// 软件实体类
	/// </summary>
	/// <![CDATA[2014-10-12 9:45:48]]>
	public class Entity : EntityBase
	{
		#region 属性
		public int nUserID = 0;
		public int nDepartmentID = 0;
		public string strIP = "";
		public string strName = "";		// 软件名称
		public string strDateTime = "";		// 软件上传时间
		public string strType = "";		// 上传文件类型
		public string strPath = "";		// 上传文件保存路径

		//private string strDate = "";
		/// <summary>
		/// 软件上传日期
		/// </summary>
		public string Date
		{
			get
			{
				return TonyNet4V1.CommonFunction.FormatDate(strDateTime, page);
			}
		}
		/// <summary>
		/// 上传文件保存路径
		/// </summary>
		public string Path
		{
			get { return strPath; }
			set { strPath = value.Trim(); }
		}
		/// <summary>
		/// 上传文件类型
		/// </summary>
		public string Type
		{
			get { return strType; }
			set { strType = value.Trim(); }
		}
		/// <summary>
		/// 软件上传时间
		/// </summary>
		public string DateTime
		{
			get { return strDateTime; }
			set { strDateTime = value.Trim(); }
		}
		/// <summary>
		/// 软件名称
		/// </summary>
		public string Name
		{
			get { return strName; }
			set { strName = value.Trim(); }
		}
		/// <summary>
		/// 上传文件电脑IP
		/// </summary>
		public string IP
		{
			get { return strIP; }
			set { strIP = value.Trim(); }
		}
		/// <summary>
		/// 上传用户所属单位
		/// </summary>
		public int DepartmentID
		{
			get { return nDepartmentID; }
			set { nDepartmentID = value; }
		}
		/// <summary>
		/// 上传用户ID
		/// </summary>
		public int UserID
		{
			get { return nUserID; }
			set { nUserID = value; }
		}
		#endregion 属性

		#region Get、Set属性

		#endregion Get、Set属性

		#region 构造函数
		/// <summary>
		/// 实体类构造函数
		/// </summary>
		/// <![CDATA[2014-10-12 9:45:48]]>
		public Entity()
			: base()
		{
		}
		#endregion 构造函数
	}
}
